home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
DOSEXTER.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
340 b
|
18 lines
#include <stdio.h>
#include <dos.h>
main()
{
struct DOSERROR errbuf;
/* Try closing a nonexistent file */
if (_close(1000) != 0)
{
printf("Error closing file.\n");
dosexterr(&errbuf);
printf("exterror=%x, class=%x, action=%x, \
locus=%x\n", errbuf.exterror, errbuf.class,
errbuf.action, errbuf.locus);
}
}